<template>
  <div>
    <el-container>
      <el-aside width="200px" class="aside"><nav-left></nav-left></el-aside>
      <el-container>
        <el-header><nav-header></nav-header></el-header>
        <el-main>
          <!-- 实现页面缓存 -->
          <keep-alive>
            <router-view v-if="$route.meta.alive"></router-view>
          </keep-alive>
            <router-view v-if="!$route.meta.alive"></router-view>

        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import NavLeft from '../components/NavLeft.vue';
import NavHeader from '../components/Header'
export default {
    components:{
        NavLeft,
        NavHeader
    }
};
</script>

<style lang="less" scoped>

.el-header{
  color: #333;
  background-color: #fff;
}
.el-container{
  background-color: #001529;
  
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  padding-left: 220px;
}
.aside{
  height:100vh;
  background-color: #001529;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
}
::-webkit-scrollbar{
  display: none;
}
</style>
